import httpUtils from "shared/utils/fetchHelper.js";
import md5 from 'md5';
import { GATEWAY_API } from "shared/config/default.js"

// 登陆
export const login = (params={}) => {
  const prms = Object.assign({}, { tenantCode: '', appId: 1234 }, params, { password: md5(params.password)});
  return httpUtils.post(GATEWAY_API + "/userAuth/login", prms);
}
